<html>
<head><meta charset="utf-8"><title>Does Cargo detect the rustc channel (nightly/stable)? · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html">Does Cargo detect the rustc channel (nightly/stable)?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214112343"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Does%20Cargo%20detect%20the%20rustc%20channel%20%28nightly/stable%29%3F/near/214112343" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html#214112343">(Oct 21 2020 at 20:44)</a>:</h4>
<p>Does Cargo already detect if you're using nightly Rust or not?</p>



<a name="214112358"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Does%20Cargo%20detect%20the%20rustc%20channel%20%28nightly/stable%29%3F/near/214112358" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html#214112358">(Oct 21 2020 at 20:44)</a>:</h4>
<p>Or would that be a non-trivial addition to Cargo?</p>



<a name="214112430"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Does%20Cargo%20detect%20the%20rustc%20channel%20%28nightly/stable%29%3F/near/214112430" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html#214112430">(Oct 21 2020 at 20:45)</a>:</h4>
<p>Yes: <a href="https://github.com/rust-lang/cargo/blob/6a38927551df9bbe2dea340bf92d3e53abccf890/src/cargo/core/features.rs#L524-L550">https://github.com/rust-lang/cargo/blob/6a38927551df9bbe2dea340bf92d3e53abccf890/src/cargo/core/features.rs#L524-L550</a></p>



<a name="214112973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Does%20Cargo%20detect%20the%20rustc%20channel%20%28nightly/stable%29%3F/near/214112973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html#214112973">(Oct 21 2020 at 20:50)</a>:</h4>
<p>That works. Thanks!</p>



<a name="214113144"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/Does%20Cargo%20detect%20the%20rustc%20channel%20%28nightly/stable%29%3F/near/214113144" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/Does.20Cargo.20detect.20the.20rustc.20channel.20(nightly.2Fstable).3F.html#214113144">(Oct 21 2020 at 20:52)</a>:</h4>
<p><a href="https://github.com/rust-lang/cargo/issues/7088#issuecomment-713867773">https://github.com/rust-lang/cargo/issues/7088#issuecomment-713867773</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>